package net.huashitong.ssydt.provider.gexin.service;


import net.huashitong.ssydt.gexin.entity.SsPushGetui;

/**
 * @author <a href="mailto:yhy23456@163.com">huiyang.yu</a>
 * @since 2017.10.09
 */
public interface SsPushGetuiService {

    int deleteByPrimaryKey(Long id);

    int insert(SsPushGetui record);

    int insertSelective(SsPushGetui record);

    SsPushGetui selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SsPushGetui record);

    int updateByPrimaryKey(SsPushGetui record);

    SsPushGetui getByUserId(String userId);

    /**
     * 注册clientid
     *
     * @param userId
     * @param clientid
     */
    void register(String userId, String clientid);

    SsPushGetui getByClientId(String clientid);

    /**
     * 注销clientid
     *
     * @param userId
     */
    void deleteCancel(String userId);
}
